{% extends 'app1/base.html' %}
{% load i18n %}
{% block subtitle %}{{obj}}{% endblock %}

{% block extra-head %}
<meta name="keywords" content="{{obj}},{{obj.strtags}},{{ g_blog.title }},{{ g_blog.keywords }}" />
<meta name="description" content="{{obj}},{{obj.category.name}},{{obj.strtags}},{{obj.abstract}}" />
<meta name="UYId" content="{{obj.short_url}}" />
{% endblock %} 

{% block content_main %}
<div class="yui-b">

<div class="yui-g" id="articletop">
<h2><a href="{{obj.category.get_absolute_url}}" title="{{obj.category.name|safe}}">{{obj.category.name|safe}}</a> &raquo; <span title="{{obj.title|safe}}">{{obj.title|safe}}</span></h2>
<blockquote><p>{{obj.abstract|safe}}</p></blockquote>

{% if obj.profile.pub_ads %}
<div class="yui-u first" id="ggad_index">
{{obj.profile.art_left|safe}}
</div>
<div class="yui-u" id="ggad_index2">
{{obj.profile.art_right|safe}}
</div>
{% else %}
{%if ads_articledetail_left_top%}<div class="yui-u first" id="ggad_index">
{{ads_articledetail_left_top|safe}}
</div>{%endif%}
{%if ads_articledetail_right_top%}<div class="yui-u" id="ggad_index2">
{{ads_articledetail_right_top|safe}}
</div>{%endif%}
{%endif%}

<div class="clear"></div>
<div id="contenct">
{{obj.content|safe}}
<p class="permalink">{% trans "Permalink" %} http://{{current_site.domain}}{{obj.short_url}}</p>

<ul> 
	{% if obj.next %}<li>{% trans "Newer Post" %}: <a href="{{obj.next.get_absolute_url}}" title="{{obj.next.title}}">{{obj.next.title}}</a></li>{% endif %}
	{% if obj.prev %}<li>{% trans "Older Post" %}: <a href="{{obj.prev.get_absolute_url}}" title="{{obj.prev.title}}">{{obj.prev.title}}</a></li>{% endif %}
</ul>


<script type="text/javascript" id="wumiiRelatedItems">
    var wumiiPermaLink = "http://{{current_site.domain}}{{obj.short_url}}"; //请用代码生成文章永久的链接 
    var wumiiTitle = "{{obj.title|safe}}"; //请用代码生成文章标题 
    var wumiiTags = "{%if obj.tags%}{%for tag in obj.tags%}{{tag}}{% if not forloop.last %}, {% endif %}{%endfor%}{%endif%}"; //请用代码生成文章标签，以英文逗号分隔，如："标签1,标签2"
    var wumiiSitePrefix = "http://www.shrekwang.com/";
</script>

<script type="text/javascript">
    var wumiiParams = "&num=5&mode=3&pf=JAVASCRIPT";
</script>
<script type="text/javascript" src="http://widget.wumii.com/ext/relatedItemsWidget.htm"></script>
<a href="http://www.wumii.com/widget/relatedItems.htm" style="border:0;">
        <img src="http://static.wumii.com/images/pixel.png" alt="无觅相关文章插件，快速提升流量" style="border:0;padding:0;margin:0;" />
</a>


<br/>

<div></div>

<p>
{% trans "Categories" %} 
<a href="{{obj.category.get_absolute_url}}" title="{{obj.category.name|safe}}">{{obj.category.name|safe}}</a> 

{%if obj.tags%}{% trans "Tags" %}: {%for tag in obj.tags%}<a href="{% url app1.views.tag_article tag %}" title="{{tag}}">{{tag}}</a>{% if not forloop.last %}, {% endif %}{%endfor%}{%endif%} 

{% trans "Author" %}: <a href="{{obj.profile.get_absolute_url}}" title="{{obj.profile.displayname|safe}} {% trans 'Profile' %}">{{obj.profile.displayname|safe}}</a> 

{% trans "Date" %} {{obj.pub_time|date:"d/m/Y"}}</p>

{% if user.is_authenticated %}
<p>
    {% if user.is_superuser %}
    {% trans "Administration" %}: <a href='{% url app1.views.edit_article key=obj.key %}'>{% trans "Edit" %}</a>
| <a href='{% url app1.views.del_article key=obj.key %}'>{% trans "Delete" %}</a>
    {%else%}
        {% ifequal user obj.author %}
        {% trans "Author" %}: <a href='{% url app1.views.edit_article key=obj.key %}'>{% trans "Edit" %}</a>
        {% endifequal %}
    {% endif %}</p>
{% endif %}

<!-- UY BEGIN -->
<!--
<div id="uyan_frame"></div>
<script type="text/javascript" id="UYScript" src="http://uyan.cc/js/iframe.js?UYUserId=2111" async=""></script>-->
<!-- UY END -->

<!--<p>这里需要添加新的评论模块</p>-->
<!-- PingLun.La Begin -->
<div id="pinglunla_here"></div><a href="http://pinglun.la/" id="logo-pinglunla"></a><script type="text/javascript" src="http://pinglun.la/cd7c0bdb1ce5b09a515420aed5705ab160d83ae7.js" charset="utf-8"></script>
<!---->
<!-- PingLun.La End -->

</div>

</div>
</div>

{% endblock %}
